package com.hsck.order.kds.main.fragment.standard.bean

/**
 * @author isnoam
 * @package_name DishManager
 * @date 2024-09-29
 * @description：
 */
class DishManager {
    private val dishList = mutableListOf<TestListBean>()
    private val dataList = mutableListOf<TestListBean>()

    init {
        initializeDishList()
    }

    private fun initializeDishList() {
        // 添加初始数据
        for (i in 1..20) {
            dishList.add(TestListBean("2024-10-10 09:40:00", "5", 1, true))
            dishList.add(TestListBean("2024-10-10 09:41:00", "6", 2, true))
            dishList.add(TestListBean("2024-10-10 09:42:00", "7", 5, true))
            dishList.add(TestListBean("2024-10-10 09:43:00", "3", 10, true))
            dishList.add(TestListBean("2024-10-10 09:44:00", "4", 1, true))
            dishList.add(TestListBean("2024-10-10 09:45:00", "0", 2, true))
            dishList.add(TestListBean("2024-10-10 09:46:00", "1", 5, true))
            dishList.add(TestListBean("2024-10-10 09:47:00", "2", 10, true))
            dishList.add(TestListBean("2024-10-10 09:48:00", "8", 10, true))
            dishList.add(TestListBean("2024-10-10 09:49:00", "9", 10, true))
        }
    }

    fun getDishList(): MutableList<TestListBean> {
        return dishList
    }

    fun getOneItemDishList(): MutableList<TestListBean> {
        dataList.clear()
        dataList.add(TestListBean("2024-10-03 09:00:00", "5", 1, true))
        return dataList
    }

    fun getTwoItemDishList(): MutableList<TestListBean> {
        dataList.clear()
        dataList.add(TestListBean("2024-10-03 09:00:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-03 09:00:00", "5", 1, true))
        return dataList
    }

    fun getTenItemDishList(): MutableList<TestListBean> {
        dataList.clear()
        dataList.add(TestListBean("2024-10-09 15:50:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:51:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:52:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:53:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:54:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:55:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:56:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:57:00", "5", 1, true))
        dataList.add(TestListBean("2024-10-09 15:58:00", "5", 1, true))
        return dataList
    }
}
